const title = '菜单'
const propList = [
  { prop: 'name', label: '菜单名称', minWidth: '100' },
  { prop: 'type', label: '类型', minWidth: '100' },
  { prop: 'url', label: '菜单url', minWidth: '100' },
  { prop: 'icon', label: '菜单icon', minWidth: '100' },
  { prop: 'permission', label: '按钮权限', minWidth: '100' },
  { prop: 'createAt', label: '创建时间', minWidth: '230', slotName: 'createAt' },
  { prop: 'updateAt', label: '更新时间', minWidth: '230', slotName: 'updateAt' },
  { label: '操作', minWidth: '120', slotName: 'handler' }
]

const showIndexColumn = true
const showSelectColumn = false

// 表格展开功能相关的配置
const childrenProps = {
  rowKey: 'id',
  treeProp: {
    children: 'children',
    hasChildren: 'has_children'
  }
}

export { title, propList, showIndexColumn, showSelectColumn, childrenProps }
